import java.io.*;
import java.util.*;

class BufferedReaderTest {
	public static void main(String [] args){
		int i=0;
		try{
			FileReader in = new FileReader(args [0]);
			BufferedReader br = new BufferedReader(in);
			String line;
			String [] line2;
			line2 = new String[10];
			ArrayList<String> list = new ArrayList<String>();
			while ( (line = br.readLine()) != null){
				list.add(line);
				System.out.println(line);
				line = list.get(i++);
				line2 [0] = line.split(" ") [0];
				System.out.println(line);
				System.out.println(line2[0]);
			}
			br.close();
			in.close();
		}
		catch (IOException e)
		{
			System.out.println(e);
		}
	}
}
